﻿namespace NodeBasedSkillEditor.Model.Node.RT
{
    public class Node_Integer_RT : RT_Node
    {
        public RT_SingleValuePort Value_RT;

        public RT_SingleValuePort Out_RT;

        public Node_Integer_RT(Node_Integer sourceData, RT_DAG parentDag) : base(sourceData, parentDag)
        {
            Value_RT = new RT_SingleValuePort(EPortIOType.Input, sourceData.Value, this);

            Out_RT = new RT_SingleValuePort(EPortIOType.Output, sourceData.Out, this);
            Out_RT.OnGetValue = GetOutput;
        }

        public AValue GetOutput(DAG_Executor executor)
        {
            return Value_RT.GetValue(executor);
        }
    }
}
